package org.zht.dormpro.pub.util;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.zht.dormpro.auth.bean.AuthUser;

public class ShiroUtil {
    public static Subject getSubject(){
        return SecurityUtils.getSubject();
    }
    public static AuthUser getAuthUser(){
        return (AuthUser) getSubject().getPrincipal();
    }
}
